export default {
	namespaced: true,

	state: {
		enum: {}, //枚举
		config: {}, //基本配置
		coinConfig: {}, //
		upgradeInfo: {}, //更新数据
		topNavHeight: 0, //导航栏高度
		menuButton: 0, //胶囊按钮位置
		regions: [], 	//省市区地址
	},
	mutations: {
		SET_CONFIG(state, list) {
			state.config = { ...list };
		},
		SET_ENUM(state, enums) {
			state.enum = { ...enums };
		},
		SET_UPINFO(state, upgradeInfo) {
			state.upgradeInfo = upgradeInfo;
		},
		SET_TOPNAV(state, num) {
			state.topNavHeight = num;
		},
		WX_MENUBUTTON(state, num) {
			state.menuButton = num;
		},

		SET_COINCONFIG(state, list) {
			state.coinConfig = list;
		},
		regions(state, list) {
			state.regions = list;
		},

		CLEAR_UPINFO(state) {
			state.upgradeInfo = {};
		},
	},
	actions: {

	}
}
